home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 2316 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: norconnect.no!not-for-mail
  2. From: kenneth@norconnect.no (Kenneth C. Nilsen)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: SHAREWARE PROGRAMMERS: Protection Patch (was Re: OS features)
  5. Date: 20 Jan 1996 02:41:07 +0100
  6. Organization: NorConnect Internet Services AS
  7. Message-ID: <1034.6592T418T2087@norconnect.no>
  8. References: <92747544038@PAPA.NORTH.DE> <4b3h9s$1st@alterdial.UU.NET>
  9.     <hmAVx*Y3f@yaps.rhein.de><cg.75pf@ami-cg.GraySage.Edmonton.AB.CA>
  10.     <4d3t9e$mkv@hermes.louisville.edu><m4d20p0mn2v.fsf@freud.hut.fi> <bAAYx*mla@aargh.incubus.sub.org>
  11. NNTP-Posting-Host: norconnect.no
  12. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  13.  
  14. >Anyone know SCRATCH (by Bill Hawes)?  It SetFunctions() all known library
  15. >functions to scratch CPU registers D1/A0/A1.
  16. >One could easily make a Protection Patch program, that enables _todays'_
  17. >AmigaOS to carefully watch a functions input.
  18.  
  19. >Now, who's willing to program this?
  20.  
  21. Be careful with this. Some dos functions are even returning results in d1
  22. (eg. LoadSeg()). You /can/ return results in other registers than d0, but C
  23. programmers will get some problems then. From assembler this works with no
  24. problems (read this right, I don't /recommend/ you guys to use other regs.
  25. than d0).
  26.  
  27. Another problem is that you have to keep track on all functions you patch and
  28. you should make one routine for each function since they have different
  29. call offsets (of course, tables work, but will slow down the functions).
  30.  
  31.  
  32. ---
  33. CREATIVE LINKS                       __     Kenneth C. Nilsen
  34. http://www.norconnect.no/~kenneth   /_/\    e-mail: kenneth@norconnect.no
  35. "Everything you want"               \_\/    Software & MultiMedia developer
  36.  
  37.